package collection_;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wly
 * @version V1.0.0
 * @date 2022/12/30 20:35
 */
public class CollectionMethod01 {
    public static void main(String[] args) {
        List list = new ArrayList();
        list.add(1);
        list.add(0);
        list.add(true);
        list.add(12);
        list.remove(0);
        System.out.println(list);

        List list1 = new ArrayList();
        list1.add(0);
        list1.add(12);
        System.out.println("list1 = " + list1);
        System.out.println(list.containsAll(list1));
        list.remove(0);
        System.out.println(list);
        list.addAll(list1);
        System.out.println(list);
    }
}
